package com.sup.generator.config;

import com.sup.generator.http.GrUserArgumentResolvers;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * @author Zh
 * @version v1.0
 * @description:
 * @date 2020/11/13 20:08
 */
@Configuration
public class GrWebConfig implements WebMvcConfigurer {

    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(new GrUserArgumentResolvers());
    }

}
